<?php
$baseUrl = Yii::app()->request->baseUrl;
$path = $path ? "$path/$data->basename" : $data->basename;
$url = "$baseUrl/files/$type/$path";
?>
<a href="<?php echo $url ?>">
	<div class="document hover">
		<div class="size"><?php echo $data->sizeName; ?></div>
		<?php echo $data->basename ?>
	</div>
</a>
